package com.wfm.entity;
 
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;  

import com.core.entity.AbstractEntity;
/**
 * 流程实例
 */
@Entity 
public class TB_WFM_INS_WORKFLOW extends AbstractEntity  {
	 
	private static final long serialVersionUID = 1L;
	public static final int WORKFLOW_PROC_RESULT_OK = 0;  //正常结束
	public static final int WORKFLOW_PROC_RESULT_INVALID = -1;  //作废invalid
 
	@Column(length=32)
	private String DEF_ID;//流程定义ID TB_WFM_DEF_WORKFLOW.ID
	
	@Column( length=32)
	private String CODE;//流程编码  
	private int VERSION;//版本
	private String NAME;//流程名称
	 
	private Date  START_TIME;//开始时间 
	private Date  END_TIME;//结束时间
	
	private int PROC_RESULT;//处理结果  0 ：正常结束、-1：作废、 大于1：未结束 （经过的环节数）
	
	@Column(length=2000)
	private String WF_EXPLAIN; //流程说明

	public String getDEF_ID() {
		return DEF_ID;
	}

	public void setDEF_ID(String dEF_ID) {
		DEF_ID = dEF_ID;
	}

	public String getCODE() {
		return CODE;
	}

	public void setCODE(String cODE) {
		CODE = cODE;
	}

	public int getVERSION() {
		return VERSION;
	}

	public void setVERSION(int vERSION) {
		VERSION = vERSION;
	}

	public String getNAME() {
		return NAME;
	}

	public void setNAME(String nAME) {
		NAME = nAME;
	}

	public Date getSTART_TIME() {
		return START_TIME;
	}

	public void setSTART_TIME(Date sTART_TIME) {
		START_TIME = sTART_TIME;
	}

	public Date getEND_TIME() {
		return END_TIME;
	}

	public void setEND_TIME(Date eND_TIME) {
		END_TIME = eND_TIME;
	}

	public int getPROC_RESULT() {
		return PROC_RESULT;
	}

	public void setPROC_RESULT(int pROC_RESULT) {
		PROC_RESULT = pROC_RESULT;
	}

	public String getWF_EXPLAIN() {
		return WF_EXPLAIN;
	}

	public void setWF_EXPLAIN(String wF_EXPLAIN) {
		WF_EXPLAIN = wF_EXPLAIN;
	} 
	 
}
